package com.hyl.service;

import com.hyl.dao.SysUserMapper;
import com.hyl.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2023/5/5 10:25
 **/
@Service("sysUserService")
public class SysUserServiceImpl implements SysUserService {

	@Autowired
	private SysUserMapper userMapper;

	@Override
	public SysUser findUserAndRoleById(Integer id) {
		return userMapper.findUserAndRoleById(id);
	}

	@Override
	public List<SysUser> findByParam(String realName, Integer sex, Integer roleId, String beginTime, String endTime, List list) {
		return null;
	}

	@Override
	public List<SysUser> findByArys(List list) {
		return userMapper.findByArys(list);
	}

	@Override
	public SysUser findByAccountAndPwd(String account, String password) {
		return userMapper.findByAccountAndPwd(account,password);
	}
}
